<template>
	<view class="xbd-apply-card" :style="'background: url('+ cardBg +') no-repeat;background-size: 100% 100%;'" @click="clickApplyCard">
		<view class="content">
			 <image class="icon" :src="cardIcon" mode=""></image>
			 <view class="tag">
			 	{{cardTag}}
			 </view>
			<view class="number">
				{{cardNum}}
			</view>
			<image class="right_icon" src="../../static/images/right.svg" mode=""></image>
		</view>
	</view>
</template>

<script>
	export default {
		name: 'XbdApplyCard',
		props: {

			cardIcon: {
				type: String,
				default: '../../static/images/meal/ordinary.png'
			},
			cardBg: {
				type: String,
				default: '../../static/images/common/bgblue.png'
			},
			cardTag: {
				type: String,
				default: ''
			},
			cardNum: {
				type: String,
				default: ''
			},
		},
		methods: {
			clickApplyCard() {
				this.$emit('clickApplyCard')
			}
		}
	}
</script>

<style lang="scss" scoped>
.xbd-apply-card{
	width: 650rpx;
	height: 60px;
	box-sizing: border-box;
	padding: 0 40rpx 0 24rpx;
	margin-bottom: 20px;

		border-radius:8rpx;
		// background: url(../../static/images/common/bgblue.png) no-repeat;

	.content{
		display: flex;
		height: 60px;
		align-items: center;
		font-size: 32rpx;
		color: #FFFFFF;
		.icon{
			width: 80rpx;
			height: 80rpx;
			margin-right: 20rpx;
		}
			
		.tag{
			flex: 1;
		}
		.number{
			font-size: 48rpx;
		}
		.right_icon{
			// margin-top: 10px;
			margin-left: 20rpx;
			width: 40rpx;
			height: 40rpx;
		}

	}
}
</style>
